import { defHttp } from '/@/utils/http/axios';
import { createVNode } from 'vue';
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
import { Modal, message } from 'ant-design-vue';

const API = {
  // plc表头
  headers: '/plc/headers',
  // plc数据
  chart: '/plc/chart',
}


/**
 * plc表头
 * @param {int} field 字段名称
 * @param {int} startTime 开始时间
 * @param {int} startTime 结束时间
 * @param {int} stationCode 站点编码
 * @returns
 */
export const plcChartApi = async (params) => {
  return await defHttp.get({ url: API.chart, params });
}

/**
 * plc表头
 * @param {int} stationCode 站点编码
 * @returns
 */
export const plcHeadersApi = async (params) => {
  return await defHttp.get({ url: API.headers, params });
}